package bigmath;

public class IntegerDemo2 {
    public static void main(String[] args) {
        //将基本类型的变量,直接赋值给了引用类型的对象--自动封箱
        int i = 7;
        //底层实际上：Integer in = Integer.valueOf(i);
        Integer in = i;
        System.out.println(in);

        double d = 3.24;
//        Double du = Double.valueOf(d);
        Double du = d;

        char c = 'g';
        //Character ch = Character.valueOf(c);
        Character ch = c;
        System.out.println(ch);
    }
}
